﻿//
// Copyright(C) MixModes Inc. 2011
// 

using System;

namespace MixModes.Synergy.Web.VisualFramework.Framework
{
    /// <summary>
    /// Event manager
    /// </summary>
    public static class EventManager
    {
        /// <summary>
        /// Raises the event if the event has any subscribers
        /// </summary>
        /// <param name="event">The event.</param>
        /// <param name="sender">The sender.</param>
        /// <param name="args">The <see cref="System.EventArgs"/> instance containing the event data.</param>
        public static void RaiseEvent(EventHandler @event, object sender, EventArgs args)
        {
            if (@event != null)
            {
                @event(sender, args);
            }
        }
    }
}
